# 方法和函数
class Students(object):
    #  方法   self指向创建的实例本身
    def __init__(self,name,gender,score):
        self.__name = name
        self.__gender = gender
        self.__score = score

#  书写函数需输出的类别:
    def print_score(self):
        print('%s: %s' % (self.__name,self.__gender,self.__score))
# 设置可加入的对象
    def set_score(self,score):
        self.__score = score
    def set_gender(self,gender):
        if gender == 'male' or 'famale':
            self.__gender= 'gender'
            count = count + 1
        else:
            print('请输入正确的性别')
# 设置可查看的对象
    def get_score(self):

        return self.__score
count = 1
xiaobai = Students('xiaobai','male',98)

print(xiaobai.set_score(98))
print(xiaobai.get_score())
print(count)